package com.ruoyi.system.service.impl.smy;

import com.ruoyi.common.core.domain.smy.Distributor;
import com.ruoyi.system.mapper.smy.DistributorMapper;
import com.ruoyi.system.service.smy.IDistributorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DistributorServiceImpl implements IDistributorService {
	@Resource
	private DistributorMapper distributorMapper;

	@Override
	public Distributor selectDistributorById(Long id) {
		return distributorMapper.selectDistributorById(id);
	}

	@Override
	public List<Distributor> selectDistributorList(Distributor distributor) {
		return distributorMapper.selectDistributorList(distributor);
	}

	@Override
	public int insertDistributor(Distributor distributor) {
		return distributorMapper.insertDistributor(distributor);
	}

	@Override
	public int updateDistributor(Distributor distributor) {
		return distributorMapper.updateDistributor(distributor);
	}

	@Override
	public int deleteDistributorByIds(Long[] ids) {
		return distributorMapper.deleteDistributorByIds(ids);
	}

	@Override
	public int deleteDistributorById(Long id) {
		return distributorMapper.deleteDistributorById(id);
	}
}
